//
//  ValidateUtils.h
//

#import <Foundation/Foundation.h>

@interface ValidateUtils : NSObject

//判断邮箱是否合法的正则表达式
+ (BOOL)validateEmail:(NSString *)email;

//判断手机号码是否合法的正则表达式
+ (BOOL)validateMobile:(NSString *)mobile;

//判断验证码都是数字的正则表达式
+(BOOL)validateVerificationCode:(NSString*)verificationCode;

//判断车牌号是否合法的正则表达式
+ (BOOL)validateCarNo:(NSString *)carNo;

//判断车型是否合法的正则表达式
+ (BOOL)validateCarType:(NSString *)CarType;

//判断用户名是否合法的正则表达式
+ (BOOL)validateUserName:(NSString *)name;

//判断密码是否合法的正则表达式
+ (BOOL)validatePassword:(NSString *)passWord;

//判断昵称是否合法的正则表达式
+ (BOOL)validateNickname:(NSString *)nickname;

//判断邮编是否合法的正则表达式
+ (BOOL)validatePostcode:(NSString *)postcode;

//判断身份证号是否合法的正则表达式
+ (BOOL)validateIDCardNumber:(NSString *)value;

//判断身份证号上的年龄大小
+ (NSInteger)getPersonAgeFromIdCard:(NSString *)pensonnelIdCard;

//根据身份证号判断性别
+ (NSInteger)getGenderFromIdCard:(NSString *)IDNumber;

//判断是否全是汉字
+ (BOOL) allString:(NSString *)string;

//判断是数字包括小数的正则表达式
+(BOOL)validateMathNumber:(NSString *)mathNumber;

//判断银行卡号是否合法的正则表达式
+(BOOL)validatebankCardNumber:(NSString*)cardNo;

+(BOOL)luhmCheck:(NSString*)teleStr;

//非空判断
+ (NSString *)validateNull:(NSString *)string;

+ (void)restrictionInputTextField:(UITextField *)inputClass maxNumber:(NSInteger)maxNumber showView:(UIView *)showView showErrorMessage:(NSString *)errorMessage;

+ (void)restrictionInputTextView:(UITextView *)inputClass maxNumber:(NSInteger)maxNumber showView:(UIView *)showView showErrorMessage:(NSString *)errorMessage;

+ (BOOL)isInputRuleNotBlank:(NSString *)str;

+ (BOOL)isInputRuleAndBlank:(NSString *)str;

+ (NSString *)disable_emoji:(NSString *)text;

+ (long long)fileSizeAtPath:(NSString*)filePath;

+ (NSString *)timeStampToDate:(NSString *)timeStampString;
//包含数字,字母
+ (int)validateContainNumberAndLetter:(NSString*)string;
//是否包含特殊字符
+ (BOOL)hasSpecialString:(NSString *)string;

@end
